package chapter02.h2_2;

import java.io.IOException;

public class Main {
    public static void main(String[] args) {
        FileIO fileIO = new FileProperties();
        try {
            fileIO.readFromFile("file.txt");
            fileIO.setValue("year","2020");
            fileIO.setValue("month","4");
            fileIO.setValue("day","21");
            fileIO.writeToFile("newfile.txt");
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
